import QrCode from 'qrcode-decoder';

export function getQrUrl(file) {
    const URL = window.URL.createObjectURL(file);
    const qr = new QrCode();
    return qr.decodeFromImage(URL);
}